use "citylevel.dta", clear

*************************
* Table 3
*************************

*baseline
reghdfe growth c.spread_lag##c.realestate_exposure, noabsorb cluster(kreis_id)
reghdfe growth c.spread_lag##c.realestate_exposure, absorb(year kreis_id) cluster(kreis_id)

*control for other macro interactions
reghdfe growth c.spread_lag##c.realestate_exposure c.germanrate_lag##c.realestate_exposure, absorb(year kreis_id) cluster(kreis_id)
reghdfe growth c.spread_lag##c.realestate_exposure c.eonia_lag##c.realestate_exposure, absorb(year kreis_id) cluster(kreis_id)
reghdfe growth c.spread_lag##c.realestate_exposure c.policyrate_lag##c.realestate_exposure, absorb(year kreis_id) cluster(kreis_id)
reghdfe growth c.spread_lag##c.realestate_exposure c.vix_lag##c.realestate_exposure, absorb(year kreis_id) cluster(kreis_id)

*control for city size
reghdfe growth c.spread_lag##c.realestate_exposure c.germanrate_lag##c.realestate_exposure c.spread_lag##c.pop, absorb(year kreis_id) cluster(kreis_id)
reghdfe growth c.spread_lag##c.realestate_exposure c.germanrate_lag##c.realestate_exposure c.spread_lag##c.popdens_2008, absorb(year kreis_id) cluster(kreis_id)

*************************
* Table 4, columns 8-9
*************************

reghdfe growth c.spread_lag##c.realestate_exposure_random c.germanrate_lag##c.realestate_exposure c.spread_lag##c.pop, absorb(year kreis_id) cluster(kreis_id)
reghdfe growth c.spread_lag##c.realestate_exposure_random c.germanrate_lag##c.realestate_exposure c.spread_lag##c.popdens_2008, absorb(year kreis_id) cluster(kreis_id)
